import json
import os


VisBasePath = "vispath"


def get_submit_jsonl() -> list[dict]:
    file_path = os.path.join(VisBasePath, "submit.jsonl")
    ans = []
    with open(file_path, "r", encoding="utf-8") as file:
        lines = file.readlines()
        for line in lines:
            ans.append(json.loads(line))
    return ans


def show_submit():
    outDict = get_submit_jsonl()
    for data in outDict:
        print("===================================")
        # print(f"id: {data['id']} query: {data['query']}")
        print(f"query: {data['query']}")
        print(f"answer: \n{data['answer']}\n")
    pass


